package com.example.class1.Service.impl;

import com.example.class1.Mapper.UserDao;
import com.example.class1.Service.UserService;
import com.example.class1.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public List<User> select() {
        return userDao.selectList(null);
    }

    @Override
    public List<User> find() {
        return userDao.find();
    }
}
